import config from './config.js'
export default (url,data=[],method="GET")=>{
return new Promise((resolve,rejected)=>{
		uni.request({
		url:config.host +url,
		data,
		method,
		success:(res)=>{
			resolve(res)
			
		},
		fail:(err)=>{
			rejected(err)
			
		}
	})
	
})
	
}